package com.pan.kang.util;

import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class ConvertUtil {

    public static String toString(Object object) {
        if (object == null) {
            return null;
        } else {
            return String.valueOf(object);
        }
    }



    public static int toInt(Object object) {
        return (int) object;
    }

    public static BigDecimal toBigDecimal(Object object) {
        return (BigDecimal) object;
    }

    public static Boolean toBoolean(Object object) {
        return (Boolean) object;
    }




    public static Integer toInteger(Object object) {
        return (Integer) object;
    }



}
